compareTo

(alias) pure function compareTo(other: text): integer

Deprecated

Use 'compare_to' instead

Compares this text to another text lexicographically, based on the Unicode value of each character in each text object.

Alias

Alias target

Return

0 if this text and other are equal, a negative integer if lexicographically less than other, and a positive integer if lexicographically greater than other.

Since

0.9.0

Parameters

other

the text to compare against this text